home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Tools / Languages / Icon 8.1 / mep2 / MemMon 2.0 / Samples / README < prev    next >
Encoding:
Text File  |  1990-11-14  |  1.8 KB  |  34 lines  |  [TEXT/PICN]

  1. This folder contains sample files related to memory monitoring in Icon.
  2.  
  3. The files whose names have the extension .mem are allocation history files
  4. that can be displayed using the MemMon application included with the ProIcon
  5. 2.0 distribution.
  6.  
  7. To see what a memory monitoring display is like, launch poetry.mem,
  8. which is an allocation history file produced by running rsg.icn from the
  9. Program Samples folder. You may wish to review the material in Appendix
  10. E of the ProIcon 2.0 manual before starting.
  11.  
  12. Now launch pool.mem and singles.mem to see contrasting allocation and garbage
  13. collection from two other programs. (The allocation history file pool.mem
  14. comes from a program that simulates population growth; singles.mem comes
  15. from a program that does heuristic assignments of players in a bridge
  16. tournement.)
  17.  
  18. The remaining allocation history files in this folder show the differences
  19. in storage allocation that result from the use of different data types in
  20. producing simple concordances. The programs all produce the same output;
  21. the differences are in how information needed is stored in memory
  22. during the processing of the input file. The names of the programs —
  23. concord_ … .icn — indicate the main data type. Launch the corresponding .mem
  24. files to see how much difference the data type makes. You may wish to look
  25. at the programs themselves: Notice how small the differences are. Notice also
  26. that some of the programs terminate abnormally because of inadequate space
  27. in the block region; this shows up as an error message in the MemMon legend.
  28.  
  29. If you want to create your own allocation history files for these programs,
  30. the input used is in concord.dat.
  31.  
  32. For more fun, try creating your own allocation history files. You can learn
  33. a lot about how ProIcon works and the significance of the use of different
  34. types of data. And you also can create fascinating displays.